/*
============================================================================
 Name        : dd_structure_test.c
 Author      : Jian (raphyer@hotmail.com)
 Version     :
 Copyright   : GPL
 Description : dd_structure_test.c - source file
============================================================================
*/

/* INCLUDE FILES */
#include "dd_vector.h"
#include "dd_stack.h"
#include "dd_btree.h"
#include "dd_avl.h"
#include "dd_rbtree.h"
#include "dd_bheap.h"
#include "dd_queue.h"
#include "dd_dtable.h"


DD_BOOL dd_structure_test() 
{
    DD_LOG("dd_structure_test start") ;

    if (!dd_vector_test()) {
        DD_LOG("dd_vector_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_vector_test test SUCCEED") ;

    if (!dd_stack_test()) {
        DD_LOG("dd_stack_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_stack_test test SUCCEED") ;

    if (!dd_queue_test()) {
        DD_LOG("dd_queue_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_queue_test test SUCCEED") ;

    if (!dd_btree_test()) {
        DD_LOG("dd_btree_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_btree_test test SUCCEED") ;

    if (!dd_avl_test()) {
        DD_LOG("dd_avl_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_avl_test test SUCCEED") ;

    if (!dd_rbtree_test()) {
        DD_LOG("dd_rbtree_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_rbtree_test test SUCCEED") ;

    if (!dd_bheap_test()) {
        DD_LOG("dd_bheap_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_bheap_test test SUCCEED") ;

    if (!dd_dtable_test()) {
        DD_LOG("dd_dtable_test test FAILED") ;
        return DD_FALSE ;
    }
    DD_LOG("dd_dtable_test test SUCCEED") ;

    DD_LOG("dd_structure_test is SUCCEED") ;

    return DD_TRUE ;
}

/* End of File */
